package com.myz.service.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 开启Feign的功能：@EnableFeignClients
 *
 * @author maoyz0621
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(value = {"com.myz.service.feign.feign"})
@EnableCircuitBreaker
public class ServiceFeignApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(ServiceFeignApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
